import { eventBus } from "../store/store.js"

export default {
    computed: {
        seen() {
            return eventBus.seen
        }
    },
    template: `
    <div v-show="seen==false" class="edit">
        <div id="editor"></div>
        <button @click="save">保存</button>
    </div>
    `,
    methods: {
        save() {
            eventBus.$emit("save")
        }
    },
}